package com.kate.mall.common.constants;

/**
 * @Description: RabbitMQ队列、交换机、路由键常量
 * @Auther: 新梦想*陈超
 * @Date: 2021/9/3 15:32
 */
public class RabbitMessageConstants {
    public static final String STOCK_EVENT_EXCHANGE="stock-event-exchange";
    public static final String STOCK_LOCK_QUEUE="stock.lock.queue";
    public static final String STOCK_LOCK_DLK="stock.lock";
    /*  * : 至少1个字符  # 表示0个或多个字符   */
    public static final String STOCK_LOCK_BINDING_KEY="stock.lock.#";
    public static final String STOCK_RELEASE_QUEUE="stock.release.queue";
    public static final String STOCK_RELEASE_DLK="stock.release";
    public static final String STOCK_RELEASE_BINDING_KEY="stock.release.#";

    public static final String ORDER_EVENT_EXCHANGE="order-event-exchange";
    public static final String ORDER_CREATE_QUEUE="order.create.queue";
    public static final String ORDER_CREATE_DLK="order.create";
    public static final String ORDER_CREATE_BINDING_KEY="order.create.#";
    public static final String ORDER_CLOSE_QUEUE="order.close.queue";
    public static final String ORDER_CLOSE_DLK="order.close";
    public static final String ORDER_CLOSE_BINDING_KEY="order.close.#";

    public static final String ORDER_CLOSE_OTHER_BINDING_KEY="order.release.other.#";
    public static final String ORDER_CLOSE_COUPON_QUEUE="order.release.coupon.queue";
    public static final String ORDER_CLOSE_OTHER_DLK="order.release.other";


}
